<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<link rel="stylesheet" href="../../../css/config.css">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox-content">
                <form class="form-horizontal m-t" id="signupForm">

                    <input type="hidden" name="userId" id="id">

                    <div class="userInfo">

                        <div class="limits">
                            <div class="period">
                                <span>权限有效期</span>
                                <select id="period" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="1">永久</option>
                                    <option value="2">时间限定</option>
                                </select>
                            </div>

                            <input th:value="${entDate}" id="entDate" type="hidden"/>

                            <div class="expirationDate">
                                <span>截至日期</span>
                                <div class="layui-inline">
                                    <input type="text" class="layui-input" id="time" name="entDate" placeholder="选择截至日期">
                                </div>
                            </div>

                        </div>

                    </div>
                    
                    <div class="all"><span>全部</span> <input type="checkbox"></div>
                    
                    <div class="form-group">
                        <div class="col-sm-12">
                            <div th:each="courses : ${coursesAll}" class="col-sm-12 model">
                                <p th:text="${courses.key}"></p>
                                <label class="checkbox-inline" th:each="resource : ${courses.value}">
                                    <input  th:text="${resource.name}" class="formValue" type="checkbox" th:value="${resource.id}" th:checked="${resource.isShow}">
                                </label>
                            </div>
                        </div>
                    </div>

                    <input type="hidden" id="ids">

                    <!--                                <input name="courses" type="checkbox" th:value="${courses.id}"-->
                    <!--                                       th:text="${courses.name}" th:checked="${courses.name}">-->

                    <!--       <span th:text="${courses.name}"></span>-->
                                <!--                                th:value="${coursesAll.id}"-->
                                <!--                                th:text="${coursesAll.name}"-->
                                <!--                                th:checked="${coursesAll.isShow}"-->

                    <div class="form-group">
                        <div class="col-sm-8 col-sm-offset-3">
                            <button type="button" class="btn btn-primary" onclick="update()">提交</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script type="text/javascript" src="/js/webJs/jzweb/zykResourcesChapters/zykAccessConfiguration.js">
</script>
</body>
</html>
